package com.china08.yxyapi.repository.db.continuedu;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.china08.yxyapi.entity.db.continuedu.YxyContinueduTaskLesson;

public interface YxyContinueduTaskLessonRepository extends JpaRepository<YxyContinueduTaskLesson, String> {

    YxyContinueduTaskLesson findTop1ByTaskIdOrderByOrderNumDesc(String taskId);

    Integer countByTaskId(String taskId);

    List<YxyContinueduTaskLesson> findByTaskId(String taskId);

    YxyContinueduTaskLesson findByLessonId(String lessonId);

    List<YxyContinueduTaskLesson> findByTaskIdAndLessonId(String taskId, String lessonId);
}
